{"version":3,"file":"submenu.min.js","sources":["submenu.js"],"names":["BX","namespace","Main","submenu","data","init","anchor","id","level","menuItems","this","anchorRect","pos","toggleMenu","currentLeft","tempLeft","tmpWindow","current","menu","currentWindow","popupWindow","isShown","bindOptions","left","forEach","currentMenu","close","PopupMenu","destroy","createMenu","pushMenu","adjustPosition","show","index","getMenu","push","key","create","autoHide","offsetTop","height","offsetLeft","width","angle","position","offset"],"mappings":"CAAC,WACA,YAEAA,IAAGC,UAAU,UAMbD,IAAGE,KAAKC,SACPC,QACAC,KAAM,SAASC,EAAQC,EAAIC,EAAOC,GAEjCC,KAAKH,GAAKA,CACVG,MAAKJ,OAASA,CACdI,MAAKD,UAAYA,CACjBC,MAAKF,MAAQA,CAEbE,MAAKC,WAAaX,GAAGY,IAAIF,KAAKJ,OAC9BI,MAAKG,cAGNA,WAAY,WAEX,GAAIC,EACJ,IAAIC,EACJ,IAAIC,EACJ,IAAIC,GAAUP,KAAKJ,OAAOY,IAC1B,IAAIC,GAAgBF,EAAUP,KAAKJ,OAAOY,KAAKE,YAAc,IAE7D,IAAIH,GAAWE,EAAcE,UAC7B,CACCP,EAAcK,EAAcG,YAAYC,IAExCb,MAAKN,KAAKoB,QAAQ,SAASC,GAC1BT,EAAYS,EAAYL,WACxBL,GAAWC,EAAUM,YAAYC,IAEjC,IAAIT,GAAeC,EACnB,CACCU,EAAYL,YAAYM,eAK3B,CACC1B,GAAG2B,UAAUC,QAAQlB,KAAKH,GAC1BG,MAAKJ,OAAOY,KAAOR,KAAKmB,YACxBnB,MAAKoB,SAASpB,KAAKJ,OAAOY,KAC1BR,MAAKJ,OAAOY,KAAKE,YAAYW,eAAe/B,GAAGY,IAAIF,KAAKJ,QACxDI,MAAKJ,OAAOY,KAAKE,YAAYY,MAE7Bf,GAAUP,KAAKJ,OAAOY,IACtBC,GAAgBF,EAAQG,WACxBN,GAAcK,EAAcG,YAAYC,IAExCb,MAAKN,KAAKoB,QAAQ,SAASC,GAC1BT,EAAYS,EAA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